package com.im.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author gongym
 * @date 2019/1/12 12:06
 */
@Data
@Component
@ConfigurationProperties(prefix = "im.server")
@PropertySource("classpath:im_server.properties")
public class ImServerConfig {
  private int port;
  private String avatarPath;
}
